/* 仪表板页面样式 */
.dashboard-page {
  padding: 24px;
  background: #f0f2f5;
  min-height: 100vh;
}

/* 页面头部样式 */
.dashboard-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 8px;
}

.dashboard-page .page-header h1 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.dashboard-page .header-actions {
  display: flex;
  gap: 12px;
}

/* 统计卡片行样式 */
.dashboard-page .statistics-row {
  margin-bottom: 16px;
}

.dashboard-page .ant-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dashboard-page .ant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 统计数值样式 */
.dashboard-page .ant-statistic {
  text-align: center;
}

.dashboard-page .ant-statistic-title {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.dashboard-page .ant-statistic-content {
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

.dashboard-page .ant-statistic-content-prefix {
  margin-right: 8px;
  font-size: 24px;
}

.dashboard-page .ant-statistic-content-suffix {
  margin-left: 4px;
  font-size: 16px;
  color: #999;
}

/* 进度条卡片样式 */
.dashboard-page .progress-card {
  margin-bottom: 16px;
}

.dashboard-page .progress-card .ant-card-body {
  padding: 24px;
}

.dashboard-page .ant-progress {
  margin: 0;
}

.dashboard-page .ant-progress-text {
  font-size: 16px;
  font-weight: 600;
}

/* 内容行样式 */
.dashboard-page .content-row {
  margin-bottom: 16px;
}

.dashboard-page .map-card,
.dashboard-page .matches-card {
  height: 100%;
}

.dashboard-page .map-card .ant-card-body,
.dashboard-page .matches-card .ant-card-body {
  padding: 16px;
}

/* 地图容器样式 */
.dashboard-page .map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 最近匹配结果样式 */
.dashboard-page .recent-matches {
  min-height: 400px;
}

.dashboard-page .recent-matches .ant-table {
  border-radius: 8px;
  overflow: hidden;
}

.dashboard-page .recent-matches .ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
  color: #333;
  padding: 12px 8px;
}

.dashboard-page .recent-matches .ant-table-tbody > tr > td {
  padding: 8px;
}

.dashboard-page .recent-matches .ant-table-tbody > tr:hover > td {
  background: #fafafa;
}

/* 表格行样式 */
.dashboard-page .recent-matches .ant-tag {
  margin: 0;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 表格行样式 */
.dashboard-page .recent-matches .ant-table-cell {
  font-size: 13px;
}

/* 数据表格行样式 */
.dashboard-page .tables-row {
  margin-bottom: 0;
}

.dashboard-page .routes-card,
.dashboard-page .shipments-card {
  height: 100%;
}

.dashboard-page .routes-card .ant-card-body,
.dashboard-page .shipments-card .ant-card-body {
  padding: 16px;
}

/* 空状态样式 */
.dashboard-page .empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
}

.dashboard-page .empty-state .anticon {
  font-size: 64px;
  margin-bottom: 16px;
  color: #d9d9d9;
}

.dashboard-page .empty-state h3 {
  color: #666;
  margin-bottom: 8px;
  font-size: 16px;
}

.dashboard-page .empty-state p {
  color: #999;
  font-size: 14px;
}

/* 加载状态样式 */
.dashboard-page .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 8px;
}

/* 按钮样式 */
.dashboard-page .ant-btn {
  border-radius: 6px;
  font-weight: 500;
}

.dashboard-page .ant-btn-primary {
  background: #1890ff;
  border-color: #1890ff;
}

.dashboard-page .ant-btn-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .dashboard-page {
    padding: 16px;
  }
  
  .dashboard-page .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .dashboard-page .page-header h1 {
    font-size: 20px;
  }
  
  .dashboard-page .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .dashboard-page .ant-statistic-content {
    font-size: 24px;
  }
  
  .dashboard-page .ant-statistic-content-prefix {
    font-size: 20px;
  }
  
  .dashboard-page .map-container {
    height: 300px;
  }
  
  .dashboard-page .recent-matches {
    min-height: 300px;
  }
  
  .dashboard-page .recent-matches .ant-table-thead > tr > th,
  .dashboard-page .recent-matches .ant-table-tbody > tr > td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .dashboard-page .ant-card-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-page {
    padding: 12px;
  }
  
  .dashboard-page .page-header {
    gap: 12px;
  }
  
  .dashboard-page .page-header h1 {
    font-size: 18px;
  }
  
  .dashboard-page .header-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .dashboard-page .ant-statistic-content {
    font-size: 20px;
  }
  
  .dashboard-page .ant-statistic-content-prefix {
    font-size: 16px;
  }
  
  .dashboard-page .map-container {
    height: 250px;
  }
  
  .dashboard-page .recent-matches {
    min-height: 250px;
  }
  
  .dashboard-page .recent-matches .ant-table {
    font-size: 11px;
  }
  
  .dashboard-page .ant-card-body {
    padding: 12px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-page .ant-card {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.dashboard-page .ant-card:hover .ant-statistic-content {
  animation: pulse 0.6s ease-in-out;
}

/* 工具提示样式 */
.dashboard-page .ant-tooltip-inner {
  border-radius: 6px;
  font-size: 12px;
}

/* 自定义滚动条 */
.dashboard-page .recent-matches .ant-table-body {
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 #f0f0f0;
}

.dashboard-page .recent-matches .ant-table-body::-webkit-scrollbar {
  width: 6px;
}

.dashboard-page .recent-matches .ant-table-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.dashboard-page .recent-matches .ant-table-body::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 3px;
}

.dashboard-page .recent-matches .ant-table-body::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}